package com.example.travel.mapper;

import com.example.travel.domain.Users;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author li134
* @description 针对表【users】的数据库操作Mapper
* @createDate 2025-03-17 15:42:33
* @Entity com.example.travel.domain.Users
*/
@Mapper
public interface UsersMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Users record);

    int insertSelective(Users record);

    Users selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);

    Users selectuser(String username, String password);

    List<Users> seluserbyid(int [] userids);

    Users selbyname(String username);

    boolean updateFriendIds(int userid, String friendids);

    Users selbyid(int userid);

    boolean insuser(Users users);
}
